<?php
    include 'base.php';

    // $pagenum = 1;
    // $pagesize = 10;
    
    // $id = 2;
    $id = $_GET['id'];


    $sql = "SELECT * FROM `oulelist` WHERE `id` = '$id'";

    $res = $conn->query($sql);

    $arr = Array();

    while ($row = mysqli_fetch_assoc($res)) {
        array_push($arr, $row);
    }

    echo json_encode($arr);
?>